<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    #div1 {
      width: 600px;
      height: 600px;
      background: red;
      /* margin: auto; */
      display: flex;
      /* flex-direction: row; */
      /* flex-direction: row-reverse; */
      /* flex-direction: column;
      flex-direction: column-reverse; */
      /* flex-wrap: wrap; */
      /* flex-flow: column-reverse nowrap; */
      /* justify-content: space-around; */
      align-content: space-around;
    }
    #div2 {
      width: 100px;
      height: 100px;
      background: rgb(0, 13, 255);
      border: 1px solid rgb(6, 5, 5);
      order: 4;
      /* flex-shrink: 1; */
    }
    #div3 {
      width: 100px;
      height: 100px;
      background: rgb(190, 102, 19);
      border: 1px solid rgb(6, 5, 5);
      order: 3;
      flex-grow: 3;
      /* flex-shrink: 0; */
      flex-basis: 100px;
    }
    #div4 {
      width: 100px;
      height: 100px;
      background: rgb(9, 156, 38);
      border: 1px solid rgb(6, 5, 5);
      flex-grow: 5;
      /* flex-shrink: 2; */
    }
  </style>
  <body>
    <div id="div1">
      <div id="div2">2</div>
      <div id="div2">2</div>
      <div id="div2">2</div>

      <div id="div3">3</div>
      <div id="div3" style="align-self: stretch">3</div>
      <div id="div3">3</div>
      <div id="div4">4</div>
      <div id="div4">4</div>
      <div id="div4">4</div>
    </div>
  </body>
</html>
